﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Runtime.Serialization;

namespace consoleTesting
{
    [Serializable()]
    public class CandleWSRT : ISerializable
    {
        public DateTime Time { get; set; }

        public Decimal Open { get; set; }

        public Decimal High { get; set; }

        public Decimal Low { get; set; }

        public Decimal Close { get; set; }

        public Decimal BodyWidth { get; set; }

        public Direction Direction { get; set; }

        public int CandleIndex { get; set; }

        public double iMA_Signal { get; set; }

        public double iWPR_Signal { get; set; }

        public double iATR_Signal { get; set; }

        public double iCCI_Signal { get; set; }


        public CandleWSRT()
        {
            CandleIndex = 0;
        }

        public void GetObjectData(SerializationInfo info, StreamingContext context)
        {
            info.AddValue("Time", Time);
            info.AddValue("Open", Open);
            info.AddValue("High", High);
            info.AddValue("Low", Low);
            info.AddValue("Close", Close);
            info.AddValue("BodyWidth", BodyWidth);
            info.AddValue("Direction", Direction);
        }
    }
}
